﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Task.Entity;
using App.Data;
using System.Data;
using App.Configuration;

namespace Task
{
    public partial class TaskListTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Write(ConfigurationManager.AppSettings["Authentication.Type"]);
            //Bind();
        }

        //void Bind()
        //{
        //    int skipResults = (AspNetPager1.CurrentPageIndex - 1) * AspNetPager1.PageSize;
        //    int maxResults = AspNetPager1.PageSize;

        //    List<TaskEntity> lists = new List<TaskEntity>();
        //    lists = DataAccess.Instance().GetListBySql<TaskEntity>(@"SELECT * FROM PROCESSES where status=1");


        //    //string sql = "SELECT * FROM Tasks1";
        //    //AspNetPager1.RecordCount = 8041;

        //    //lists = DataAccess.Instance().GetList<TaskEntity>("TaskListTest", null);

        //    //rptTask.DataSource = lists;

        //    //DataSet ds = DataAccess.Instance().ExecuteDataSet(sql);
            
        //    //DataSet ds = DataAccess.Instance("businessDB").ExecuteDataSet("select * from t_user");

        //    //rptTask.DataSource = ds;
        //    //rptTask.DataBind();

        //    GridView1.DataSource = lists;
        //    GridView1.DataBind();
        //}

        //protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        //{
        //    Bind();

        //}

        //protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
        //{
        //    GridView1.PageIndex = e.NewPageIndex;
        //    Bind();

        //}
    }
}